<?php
namespace api\tv\controller;

use api\tv\controller\Base;
use think\Config;
use think\Request;
use core\tv\model\AdverModel;

class Adver extends Base
{
    public function list(){
        $map['status'] = 1;
        $list = AdverModel::getInstance()->where($map)->order('id DESC')->limit(2)->select();
        if($list){
            $this->api(200,'获取广告列表成功',$list);
        }else{
            $this->api(400,'获取广告列表失败');
        }
    }
}